﻿using UnityEngine;
using System.Collections;


/**
 * 函数和变量， 函数是处理输入变量到输入变量的行为
 * 变量是存储数据容器盒子
 */
public class VariablesAndFunctions : MonoBehaviour
{   
    int myInt = 5;
    
    
    void Start ()
    {
        myInt = MultiplyByTwo(myInt);
        Debug.Log (myInt);
    }
    
    
    int MultiplyByTwo (int number)
    {
        int ret;
        ret = number * 2;
        return ret;
    }
}